DisplacementΒΆ

Setup the displacement

Add a displacement shader and a displacement texture
  1. In the RenderGraph, add a Materials/Displacement node.
  2. Add a Library/Attributes/MaskTexture sub-shader on the Displacement > Amount attribute.
  3. With this texture node, choose your displacement texture.
You can also drag'n drop your displacement texture file directly on the Displacement > Amount attribute. Activate the displacement
  1. Set the Attributes > Displacement > Displacement attribute to Displacement+Bump.
  2. Tweak the Attributes > Displacement > Displacement Amount to get the correct displacement.
If the displacement is too coarse
  1. Increase the Attributes > Subdivision > Subdivison Level to add geometry details.
The Library/Materials/Displacement shader for the details. The Library/Materials/VectorDisplacement shader to learn how to do vector displacement. The Help > Samples > Bump NormalMap Displace sample project.

The displacement attributes

Displacement Mode

Enable the geometry displacement for this object.

  • Bump : the displacement shader is used as bump, pixel wise, during the shading. No displacement is applied to the geometry.
  • Displacement : the displacement shader is applied on the subdivided geometry.
  • Displacement+Bump : the displacement shader is applied on the subdivided geometry and is also used as bump, pixel wise, during the shading.

The Sphere displacement set to Bump, Displacement and Displacement+Bump

RaytraceDisplacement

Displacement Amount

Control how much the object is displaced.

The Sphere displace amount set to 0.05 and 0.2

DisplaceAmount

Displacement System

Choose in which space the displacement is expressed.

  • Object : The displacement is expressed in object space. The object aspect is independent from its scale. The object instances stay instanciated.
  • World : The displacement is expressed in world space. Warning, the object instances will be duplicated and will take more memory.
Two Spheres with different scales, with the displace system set to Object and World

DisplacementSystem

Displacement

The shader used to displace the object surface.

DisplacementShader